package ssm.Test.JavaMain.entity;

import java.io.Serializable;

/**
 * @Author Maple.Chen
 * @Description 雇员，小时工
 * @Date 11:33 2020/4/26
 **/
public class HourlyEmployee extends Employee implements Serializable {
    private Double rate; // 小时工薪资

    public HourlyEmployee() {
    }

    public HourlyEmployee(Double rate) {
        this.rate = rate;
    }

    public Double getRate() {
        return rate;
    }

    public void setRate(Double rate) {
        this.rate = rate;
    }

    @Override
    public String toString() {
        return "HourlyEmployee{" +
                "id=" + super.getId() +
                " name=" + super.getName() +
                " rate=" + rate +
                '}';
    }
}
